<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'emp_add.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<link rel="stylesheet" type="text/css" href="css/emp_add.css">
<script src="js/jquery/jquery-1.9.1.js"></script>
<script type="text/javascript">
function checkPassword(){
	if($("#newpassword").val()!=$("#new_re_password").val()){
		alert("两次输入不相等");
	}
}
</script>
</head>
<body>
	<h3>修改密码</h3>
	<div id="container">
		<form id="fm-form" method="post"
			action="adminAction!updateAdmin.action">
			<fieldset>
			<legend><s:property value="admin.admin_name" /></legend>
				<div class="fm-req">
					<label for="fm-firstname">原来密码</label> <input
						name="admin.admin_password" id="oldpassword" type="password">
						<input type="hidden" name="admin.admin_id" value='<s:property value="admin.admin_id" />' id="fm-firstname" type="text">
						<input type="hidden" name="admin.admin_name" value='<s:property value="admin.admin_name" />' id="fm-firstname" type="text">
				</div>
				<div class="fm-req">
					<label for="fm-firstname">新密码</label> <input
						name="admin.re_password" id="newpassword" type="password">
				</div>
				<div class="fm-req">
					<label for="fm-firstname">再次输入新密码</label> <input name="new_re_password" onblur="checkPassword()"
						id="new_re_password" type="password">
				</div>
			</fieldset>
			<div id="fm-submit" class="fm-req">
				<input  value="&#25552; &#20132;" type="submit">
			</div>
			<br>
		</form>
	</div>
</body>
</html>
